#ifndef __RECTANGLE_H__
#define __RECTANGLE_H__
#include <Quadrangle.h>

class Rectangle : public Quadrangle
{
public:
    Rectangle (float height, float width);
    float getArea() const;
    float getPerimeter() const;
    float getHeight() const;
    float getWidth() const;
    bool  setHeight(float height);
    bool  setWidth(float width);

private:
    bool  isHeightValid() const;
    bool  isWidthValid() const;
    bool  isValid() const;
    float m_height;
    float m_width;
};

#endif



